# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
#
# This PKGBUILD was extracted from AUR and adapted to our style
#
# Old Maintainer: twa022 <twa022 at gmail dot com>
# Old Contributor: Somasis <somasis@cryptolab.net>

pkgname=mugshot
pkgver=0.4.3
pkgrel=6
pkgdesc='Program to update personal user details.'
arch=('any')
url='https://github.com/bluesabre/mugshot'
license=('GPL3')
depends=('gtk3' 'python-pexpect' 'python-dbus' 'python-cairo' 'python-gobject'
         'accountsservice')
makedepends=('python-distutils-extra' 'intltool')
optdepends=('cheese: webcam support'
            'pidgin: update buddy icon'
            'libreoffice: update user details')
options=(!emptydirs)
source=("https://github.com/bluesabre/$pkgname/archive/$pkgname-$pkgver.tar.gz")
sha512sums=('b5e91288b4de30124bd84c44b8f2a70e043af12e1f9580d07b13344b6c0343399037aadf153ea216d61cd12e4891ebb15557f1ad62c3b4d7c49584fa004ae65c')

package() {
  cd "$pkgname-$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" AUTHORS NEWS README.md
  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

